package com.thirteen.app.dao;

import com.thirteen.app.dto.PaperRespose.AnswerDto;
import com.thirteen.app.entity.Answer;
import org.apache.ibatis.annotations.Param;

public interface PaperSubjectiveDao {

    //    插入当前考试构成的填空答案
    Boolean insertSubjectiveCompletion(@Param("examRecordId") Integer examRecordId, @Param("answer") Answer answer, @Param("answerCount") Integer answerCount);

    //    插入当前考试构成的简答答案
    Boolean insertSubjectiveShort(@Param("examRecordId") Integer examRecordId, @Param("answer") Answer answer);

    //    查询答案
    String queryAnswer(@Param("examRecordId") Integer examRecordId, @Param("questionId") Integer questionId);

    //    提交答案
    Boolean submitAnswer(@Param("answerDto") AnswerDto answerDto);

}
